Dew Stats for .NET
|
Fits rational fraction equation to data.
Parameters |
Description |
[In] TVec B |
Returns regression coefficients for rational function. |
[In] TVec X |
Vector of independent variable. |
[In] TVec Y |
Vector of dependent variable. |
int DegNom |
Nominator degree. |
int DegDenom |
Denominator degree. |
bool Constant |
If false, B[0] i.e. constant term in nominator is set to 0.0. |
[In] TVec Weights |
Weights (optional). Weights are used only if they are set. |
The routine fits equations to data by minimizing the sum of squared residuals. The observed values obey the following equation:
where n and d are nominator and denominator polynomial degrees.
In the following example we generate some data. Then we fit power function to this data and retreive it's regression coefficients.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|